<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://java.sun.com/jsf/core">
<h:head>
	<h:body>
		<h:form>
			<h:panelGrid border="2" columns="2">
				<p:facet name="header">
					<h:outputText value="Enter your profile information"></h:outputText>
				</p:facet>
				<h:outputLabel value="Name"></h:outputLabel>
				<h:inputText value="#{studentBean.name}"></h:inputText>
				<h:outputLabel value="Surname"></h:outputLabel>
				<h:inputText value="#{studentBean.surname}"></h:inputText>
				<h:outputLabel value="Univesity"></h:outputLabel>
				<h:selectOneListbox id="lbUniversity"
					value="#{studentBean.university}">
					<p:selectItem itemValue="Ege University"></p:selectItem>
					<p:selectItem itemValue="METU"></p:selectItem>
					<p:selectItem itemValue="ITU"></p:selectItem>
					<p:selectItem itemValue="Hacettepe University"></p:selectItem>
					<p:selectItem itemValue="Bilkent University"></p:selectItem>
				</h:selectOneListbox>
				<h:outputLabel value="Department"></h:outputLabel>
				<h:selectOneListbox id="lbDepartment"
					value="#{studentBean.department}">
					<p:selectItem itemValue="Computer Engineering"></p:selectItem>
					<p:selectItem itemValue="Industrial Design"></p:selectItem>
					<p:selectItem itemValue="Interior Design"></p:selectItem>
					<p:selectItem itemValue="Graphic Design"></p:selectItem>
					<p:selectItem itemValue="Architecture"></p:selectItem>
				</h:selectOneListbox>
				<h:outputLabel value="Gender" id="lblGender"></h:outputLabel>
				<h:selectOneRadio id="rbGender" value="#{studentBean.gender}">
					<p:selectItem itemValue="Male" itemLabel="Male"></p:selectItem>
					<p:selectItem itemValue="Female" itemLabel="Female"></p:selectItem>
				</h:selectOneRadio>
				<h:outputLabel value="GPA" id="lblGPA"></h:outputLabel>
				<h:inputText id="txtGPA" value="#{studentBean.gpa}"></h:inputText>
				<h:outputLabel value="E-mail"></h:outputLabel>
				<h:inputText value="#{studentBean.email}"></h:inputText>
				<h:outputLabel value="User Name"></h:outputLabel>
				<h:inputText value="#{studentBean.username}"></h:inputText>
				<h:outputLabel value="Password"></h:outputLabel>
				<h:inputText value="#{studentBean.password}"></h:inputText>
				<h:commandButton id="btnRegister" value="Register"
					action="#{studentBean.setNewStudent}"></h:commandButton>

			</h:panelGrid>
		</h:form>
	</h:body>
</h:head>

</html>